/*  File Name	: ComDefine.h
 *  Author		: Javie Pong
 *	 E-mail		: 823960168@qq.com
 *  Created on	: 2012-9-20
 *  Description:
 */

#ifndef COMDEFINE_H_
#define COMDEFINE_H_

#define DELETE(PTR) \
	if(NULL!=PTR) \
	{	\
		delete PTR;\
		PTR=NULL;\
	}\

//////////////////////////signal redefine/////////////////////////
//#define	SIGTSTP		20	/* Keyboard stop (POSIX).  */
//#define	SIGTTIN		21	/* Background read from tty (POSIX).  */
//#define	SIGTTOU		22	/* Background write to tty (POSIX).  */

#define SIGNAL_NEW_SERVER  20  //new a server
#define SIGNAL_STOP_SERVER 21  //stop a server
#define SIGNAL_GAME_STOP  	22  //stop all server
////////////////////////////////////////////////////////////////


#endif /* COMDEFINE_H_ */
